package org.aurora.common.util;

import java.lang.management.ManagementFactory;
import java.lang.management.RuntimeMXBean;

public class RuntimeUtil {
    /**
     * 获取进程 id
     * @return
     */
    public final static String processId() {
        RuntimeMXBean runtimeMXBean = ManagementFactory.getRuntimeMXBean();
        String processName = runtimeMXBean.getName();
        String pid = processName.split("@")[0];
        return pid;
    }
}
